import os
os.environ.setdefault("DJANGO_SETTINGS_MEDULE","mescpro.settings")
import django
django.setup()

from django.contrib.auth import authenticate


username="刘禹辰"
password='123'
user=authenticate(username=username,password=password)
print(user)
print(type(user))
if user:
    print('123')
else:
    print('456')